<%@page import="com.zhuoshi.bean.NavigationBean"%>
<%@page import="com.zhuoshi.dao.NavigationDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'testmenu.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="./template/H-ui.min.css">
    <link rel="stylesheet" type="text/css" href="./template/H-ui.admin.css">
    <link rel="stylesheet" type="text/css" href="./template/iconfont.css">
    <link rel="stylesheet" type="text/css" href="./template/icheck.css">
    <link rel="stylesheet" type="text/css" href="./template/skin.css" id="skin">
    <link rel="stylesheet" type="text/css" href="./template/style.css">
    <link rel="stylesheet" href="./template/layer.css" id="layui_layer_skinlayercss">

  </head>
  
  <body>
    <%
   		NavigationDao treeDao = new NavigationDao();
   		List<NavigationBean> nodes = treeDao.getDataList(0);
   		NavigationDao daoTree = new NavigationDao(nodes);
   		String treeMenu = daoTree.buildTree();
   		pageContext.setAttribute("treeMenu", treeMenu);
   	 %>
   	 <aside class="Hui-aside">
   	 <div class="menu_dropdown bk_2">
   	 ${treeMenu }
   	 </div>
   	 </aside>
   	
   	
   	<script type="text/javascript" src="./template/jquery.min.js"></script>
    <script type="text/javascript" src="./template/layer.js"></script>
   	<script type="text/javascript" src="./template/H-ui.js"></script>
   	<script type="text/javascript" src="./template/H-ui.admin.js"></script>
  </body>
</html>
